//
//  YWBuildingJson.h
//  maintain
//
//  Created by 郑想 on 15/10/28.
//  Copyright © 2015年 ewin. All rights reserved.
//

#import "YWEquipment.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface YWBuildingJsonFile : NSObject
/**楼盘ID*/
@property (nonatomic, copy) NSString* buildingId;
@property (nonatomic, assign) NSTimeInterval equipmentJsonFileUpdateTime;
@property (nonatomic, assign) NSTimeInterval buildingJsonFileUpdateTime;
@property (nonatomic, assign) NSTimeInterval ruleJsonFileUpdateTime;
@property (nonatomic, copy) NSString* equipmentJsonUrl;
@property (nonatomic, copy) NSString* buildingJsonUrl;
@property (nonatomic, copy) NSString* ruleJsonUrl;
@end

@interface YWBuildingJson : NSObject
/**楼盘ID*/
@property (nonatomic, copy) NSString* buildingId;
/**楼盘名称*/
@property (nonatomic, copy) NSString* buildingName;
/**竣工时间*/
@property (nonatomic, assign) NSTimeInterval foundDate;
/**联系人*/
@property (nonatomic, copy) NSString* contact;
/**联系电话*/
@property (nonatomic, copy) NSString* contactNumber;
/**地址*/
@property (nonatomic, copy) NSString* address;
/**占地面积 单位平方米*/
@property (nonatomic, assign) NSInteger floorArea;
/**建筑面积 单位平方米*/
@property (nonatomic, assign) NSInteger buildingArea;
/**坐标*/
@property (nonatomic, copy) NSString* coordinate;
/**使用年限*/
@property (nonatomic, assign) NSInteger durableYears;

/**楼栋*/
@property (nonatomic, strong) NSArray* apartments;
/**楼盘图片*/
@property (nonatomic, copy) NSString* surfacePicture;
@property (nonatomic, assign) NSTimeInterval equipmentJsonFileUpdateTime;
@property (nonatomic, assign) NSTimeInterval buildingJsonFileUpdateTime;
@property (nonatomic, assign) NSTimeInterval ruleJsonFileUpdateTime;
@end

@interface YWApartmentJson : NSObject
/**楼栋ID*/
@property (nonatomic, assign) NSInteger apartmentId;
/**楼栋名称*/
@property (nonatomic, copy) NSString* apartmentName;
/**楼栋编码*/
@property (nonatomic, copy) NSString* code;
/**地上层数*/
@property (nonatomic, assign) NSInteger overgroundCount;
/**地下层数*/
@property (nonatomic, assign) NSInteger undergroundCount;
/**使用年限*/
@property (nonatomic, assign) NSInteger durableYears;

/**楼层*/
@property (nonatomic, strong) NSArray* floors;

@end

@interface YWFloorJson : NSObject
/**楼层ID*/
@property (nonatomic, assign) NSInteger floorId;
/**楼层名称*/
@property (nonatomic, copy) NSString* floorName;
/**楼层编码*/
@property (nonatomic, copy) NSString* code;
/**层高*/
@property (nonatomic, assign) CGFloat height;
/**层位置*/
@property (nonatomic, strong) NSArray* locations;

@end

@interface YWLocationJson : NSObject
/**层位置ID*/
@property (nonatomic, assign) NSInteger locationId;
/**层位置名称*/
@property (nonatomic, copy) NSString* locationName;
/**位置编码*/
@property (nonatomic, copy) NSString* code;
/**楼层ID*/
@property (nonatomic, assign) NSInteger floorId;
/**层位置*/
//@property (nonatomic, strong) NSArray* qrcodes;

@end
